package me.send.produce.client.controller;

import java.util.Map;

import me.send.business.base.ErrorEntity;
import me.send.business.service.pojo.Zambia;
import me.send.business.service.service.ZambiaService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value = "zambia", method = RequestMethod.POST)
public class ZambiaController {

	@Autowired
	private ZambiaService zambiaService;

	@RequestMapping(value = "zambia/orderid/userid")
	@ResponseBody
	public ErrorEntity zambia_orderid_userid(String devicenumber, Zambia zambia) {
		return zambiaService.zambia_orderid_userid(devicenumber, zambia);
	}

	@RequestMapping(value = "count/orderid")
	@ResponseBody
	public Map<String, Object> count_orderid(int orderid, String devicenumber) {
		return zambiaService.count_orderid(orderid, devicenumber);
	}
}
